package com.piece.module.flowable.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@Data
@NoArgsConstructor
@ApiModel("表单属性视图对象")
public class FormConf implements Serializable {

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("表单名")
    private String formRef;

    @ApiModelProperty("表单模型")
    private String formModel;

    @ApiModelProperty("表单尺寸")
    private String size;

    @ApiModelProperty("标签对齐")
    private String labelPosition;

    @ApiModelProperty("标签宽度")
    private Integer labelWidth;

    @ApiModelProperty("校验模型")
    private String formRules;

    @ApiModelProperty("栅格间隔")
    private Integer gutter;

    @ApiModelProperty("禁用表单")
    private Boolean disabled = false;

    @ApiModelProperty("栅格占据列数")
    private Integer span;

    @ApiModelProperty("表单按钮")
    private Boolean formBtns = true;

    @ApiModelProperty("表单项")
    private List<Map<String, Object>> fields;
}
